<?php
include '../classes/examHandler.php';
include '../classes/db.php';

$reg=addslashes($_GET['regno']);
$mark=addslashes($_GET['marks']);
$mon=$_GET['month'];
$yr=$_GET['year'];
$subgr=$_GET['subgr'];

$x=new DbConnect();
$con=$x->getConnection();

$xm=new ExamHandler();
$xm->setConnect($con);
 
$xm->setRegno($reg);
$xm->setSubgr($subgr);
$xm->setMonth($mon);
$xm->setYear($yr);
$xm->setMarks($mark);

$time_now=mktime(date('H')+5,date('i')+30,date('s'),date('m'),date('d'),date('Y'));

$yearnw=date('Y',$time_now); 
$monthnw=date('m',$time_now); 
			
$result=$xm->marksAdd();
echo $result;
					
?>